package com.muyu.day3zy.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.muyu.common.core.annotation.Excel;
import com.muyu.common.core.web.domain.BaseEntity;
import com.muyu.day3zy.domain.PromotionInfo;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

/**
 * @ClassName PromotionInfoVo
 * @Description 描述
 * @Author ShiYu.Cui
 * @Date 2024/3/24 19:43
 */
public class PromotionInfoVo extends PromotionInfo {
    private static final long serialVersionUID = 1L;


    /** 数量 */
    @Excel(name = "数量")
    private Integer num;

    /** 折扣 */
    @Excel(name = "折扣")
    private Integer discount;

    /** 满 */
    @Excel(name = "满")
    private Integer full;

    /** 立减 */
    @Excel(name = "立减")
    private Integer minus;

    /** 黄金会员 */
    @Excel(name = "黄金会员")
    private String goldMember;

    /** 白金会员 */
    @Excel(name = "白金会员")
    private String platinumMember;

    /** 钻石会员 */
    @Excel(name = "钻石会员")
    private String diamondMember;
    /** 开始时间 */
    @Excel(name = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startTime;

    /** 结束时间 */
    @Excel(name = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /** 促销价格 */
    @Excel(name = "促销价格")
    private Double price;

    public Integer getNum() {
        return num;
    }

    public void setNum(Integer num) {
        this.num = num;
    }

    public Integer getDiscount() {
        return discount;
    }

    public void setDiscount(Integer discount) {
        this.discount = discount;
    }

    public Integer getFull() {
        return full;
    }

    public void setFull(Integer full) {
        this.full = full;
    }

    public Integer getMinus() {
        return minus;
    }

    public void setMinus(Integer minus) {
        this.minus = minus;
    }

    public String getGoldMember() {
        return goldMember;
    }

    public void setGoldMember(String goldMember) {
        this.goldMember = goldMember;
    }

    public String getPlatinumMember() {
        return platinumMember;
    }

    public void setPlatinumMember(String platinumMember) {
        this.platinumMember = platinumMember;
    }

    public String getDiamondMember() {
        return diamondMember;
    }

    public void setDiamondMember(String diamondMember) {
        this.diamondMember = diamondMember;
    }

    public Date getStartTime() {
        return startTime;
    }

    public void setStartTime(Date startTime) {
        this.startTime = startTime;
    }

    public Date getEndTime() {
        return endTime;
    }

    public void setEndTime(Date endTime) {
        this.endTime = endTime;
    }

    public Double getPrice() {
        return price;
    }

    public void setPrice(Double price) {
        this.price = price;
    }
    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("num", getNum())
                .append("discount", getDiscount())
                .append("full", getFull())
                .append("minus", getMinus())
                .append("goldMember", getGoldMember())
                .append("platinumMember", getPlatinumMember())
                .append("diamondMember", getDiamondMember())
                .append("startTime", getStartTime())
                .append("endTime", getEndTime())
                .append("price", getPrice())
                .toString();
    }
}
